import dayjs from 'dayjs';
/**
 * 判断值是否为空
 *
 * @param {*} val
 * @return {*}
 */
export const isEmpty = (val: any) => {
  if (Array.isArray(val)) {
    return val.length === 0;
  }
  return [null, undefined, ''].includes(val);
};

export const getTimestampString = () => dayjs().valueOf().toString(16);
